<?php
	$current_language = $data["current_language"];
	$cvInfo = $data["cvInfo"];
	$cvXML = $cvInfo->getXMLCV();
	
	$ava_image = W3C_PATH.'images/cv/ava.png';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php echo "Curriculum Vitae" ?></title>
	
	<link rel="stylesheet" type="text/css" href="<?php echo CSS_PATH . 'cv.css';?>" />
	<script type="text/javascript" src="<?php echo JAVASCRIPT_PATH . 'jquery-1.8.2.min.js'?>"></script>
	<script type="text/javascript" src="<?php echo JAVASCRIPT_PATH . 'cv.js'?>"></script>
</head>
<body>
	<div class="wrapper">
		<div class="item title roofing header">
			
			<ul>
				<li><img class="ava" src="<?php echo $ava_image;?>" alt=""/></li>
				<li class="brief1">
					<b><?php echo $cvXML->header->title1; ?></b>
					<div class="line_break"></div>
					<div><?php echo $cvXML->header->introduction;?></div>
					<div>
						<a href="<?php echo $cvXML->header->personalInfo->website;?>" target="_blank">
							<?php echo $cvXML->header->personalInfo->website;?>
						</a>
					</div>					
				</li>
				<!-- 
				<li class="brief2">
					something
				</li>
				 -->
				<li class="brief3">
					<b><?php echo $cvXML->header->title2;?></b>
					<div class="line_break"></div>
					<div><?php echo $cvXML->header->personalInfo->birthday;?></div>					
					<div><?php echo $cvXML->header->personalInfo->address;?></div>
					<div><?php echo $cvXML->header->personalInfo->phone;?></div>
					<div><?php echo $cvXML->header->personalInfo->email;?></div>
				</li>
			</ul>		
		</div>
		 
		<div class="item header_line">
			<div class="tags">
				<label> <?php echo lblDownload; ?> </label><a>pdf</a> <a>doc</a>				
			</div>
			<div class="tags right" align="right">
				<input type="hidden" id="hddCurrentLanguage" value="<?php echo $current_language; ?>" />				 
				<a id="vi" href="<?php echo ROOT_WEB.'cv/?language=vi'?>">Tiếng Việt</a>
				<a id="fr" href="<?php echo ROOT_WEB.'cv/?language=fr'?>">Francais</a>				
				<a id="en" href="<?php echo ROOT_WEB.'cv/?language=en'?>">English</a>
			</div>
		</div>
		 
		<div class="left">
			<div class="item title roofing"> <?php echo itemTitleSkills; ?></div>
			<div class="item">
				<table>
					<?php						
						foreach($cvXML->skills->skill as $skill){							
							echo "<tr>";
							echo "<td class='col_s2'>" . $skill->name . "</td>";
							echo "<td>" . $skill->text . "</td>";
							echo "</tr>";
						}
					?>					
				</table>
			</div>
			
			<div class="item title roofing"> <?php echo itemTitleExperience; ?> </div>
			<div class="item">
				<table id="experiences">
				<?php						
				foreach($cvXML->experiences->experience as $experience){							
					echo "<tr>";
					echo "<td class='col_s2'>" . $experience->time . "</td>";
					echo "<td>";
					echo "<div>". $experience->title ."</div>";
					echo "<div class='details'>";
					echo "<span>". $experience->desc ."</span>";
					
					echo "<ul>";
					foreach($experience->works->li as $li){
						echo "<li>". $li  ."</li>";
					}
					echo "</ul>";
					
					echo "<div class='tags white_gradient'>";
					foreach($experience->tags->a as $a){
						echo "<a>". $a  ."</a>";
					}
					echo "</div>";
					
					echo '<a class="more_details">...</a>';
					
					echo "</div>";
					echo "</td>";
					echo "</tr>";
				}
				?>								
				</table>
			</div>
		</div>	
		
		<div class="right">
			<div class="item title roofing"><?php echo itemTitleEducation; ?></div>
			<div class="item">
				<table>
				<?php						
				foreach($cvXML->education->diploma as $diploma){	
					echo "<tr>";
					echo "<td class='col_s1'>". $diploma["time"] ."</td>";
					echo "<td>". $diploma ."</td>";
					echo "</tr>";
				}
				?>					
				</table>
			</div>
			
			<div class="item title roofing"><?php echo itemTitleActivities; ?></div>
			<div class="item">
				<table>
				<?php						
				foreach($cvXML->socialActivities->activity as $activity){	
					echo "<tr>";
					echo "<td class='col_s1'>". $activity["time"] ."</td>";
					echo "<td>". $activity ."</td>";
					echo "</tr>";
				}
				?>
				</table>
			</div>
			
			<div class="item title roofing"><?php echo itemTitleLeisure; ?></div>
			<div class="item">
				<div><?php echo $cvXML->leisures?></div>				
			</div>
			
			<div class="item title roofing"><?php echo itemTitleContact; ?></div>
			<div class="item">
				<table id="contact">
					<tr>
						<td class="col_s1"><?php echo itemLabelName; ?></td>
						<td><input type="text" id="txtName"/></td>
					</tr>
					<tr>
						<td class="col_s1"><?php echo itemLabelEmail; ?></td>
						<td><input type="text" id="txtEmail"/></td>
					</tr>
					<tr>
						<td class="col_s1"><?php echo itemLabelMessage; ?></td>
						<td><textarea id="txtMessage" cols="30" rows="4"></textarea> </td>
					</tr>
					<tr>
						<td class="col_s1"></td>
						<td>
							<a id="btnSend"><?php echo itemButtonSendMessage; ?></a>
							<label id="lblContactError" class="error">error</label>
						</td>
					</tr>
				</table>
				<label id="lblContactResult">Thanks for your message. I will reply you soon</label>
				<input type="hidden" id="hddContactURL" value="<?php echo ROOT_WEB."cv/contact.php"; ?>"/>
			</div>
		</div>
				
		<div class="footer">
			<div class="float_left">
				<a href="http://www.facebook.com/aductt" target="_blank">facebook.com/aductt</a>
			</div>
			<label>aduc272 &copy; 2012</label>
			<div class="float_right align_right">
				<i>continue to continue </i><br />				
				<i>not everything is as it seems</i>
			</div>
			<br /><br />
		</div>
	</div>
</body>
</html>